<div class="block-serial">
					<table width="99%" style="border: 0px solid red;">
					<tr>
					<?php 
					$rname="equipment";
					$CatID="";
					$order="";
					$limit[0]="0";
					$limit[1]="6";
					$where=" is_serial=1 ";
					
					$Equip = GetElementsByCatID($rname, $CatID, $order, $limit, $where);
					
					if (!empty($Equip)) {
					$i=0;
					$allobj=count($Equip);
					
						foreach ($Equip as $equ) {
						
						
						if (!empty($equ['fotos'])) {
				
							$img_array=string_to_array($equ['fotos']);
							$equ['fotos']=$img_array[0];
					
							$width="108";
							$height="117";
							
							$src=$equ['fotos'];
							$dest=str_replace(".", "_index.", $equ['fotos']);
							$rgb="";
							//echo "src=".$src."<br>";
							//echo "dest=".$dest."<br>";
							//if (!file_exists($dest)) 
							$rgb="";
							$do=img_resize($src, $dest, $width, $height, $rgb);
							$dest="/".$dest;
							
						}//if
						else $dest=$design_path."images/dot.gif";
						
					?>
						<td class="serial-td" align="center" <?php if ($i==($allobj-1)) {?>style="border-right:0px;"<?php }?>>
						<div class="serial-title"><a href="/equipment/<?php echo $equ['ID'];?>.html"><?php echo $equ['title'];?></a></div>
							<div class="serial-image"><a href="/equipment/<?php echo $equ['ID'];?>.html"><img src="<?php echo($dest); ?>" alt="" /></a></div>
						</td>
					<?php
						$i++;
						}//foreach ($Equip as $equ) {
					}//if (!empty($Equip)) { 
					?>
					</tr>
					</table>
					
					</div>